import Vue from 'vue'
import App from './App'
import store from 'store'

//把vuex定义成全局组件
Vue.prototype.$store = store
Vue.config.productionTip = false

App.mpType = 'app'
//#ifdef H5
// uni.setStorageSync('userToken', {
// 	"id": "891c05c138964992a4b978de8508e38e"
// })
// uni.setStorageSync('userInfo', {
// 	"createTime": "2020-09-11 10:02:52",
// 	"headPhoto": "https://photo.chain-pay.cn/USER/6d3d39e1-5c22-477b-a517-d5c167d5d996.jpg",
// 	"id": 1067,
// 	"isCertified": false,
// 	"isEnbale": true,
// 	"level": 1,
// 	"levelName": "会员",
// 	"nickName": "风格",
// 	"userName": "15775402537",
// 	"userType": 1
// })
//#endif
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

const app = new Vue({
	...App,
	store
})



import httpInterceptor from '@/common/http.interceptor.js'
Vue.use(httpInterceptor, app)
Vue.prototype.imageURL = 'https://photo.chain-pay.cn/'
app.$mount()
